home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / onlineco / files / ImageMagick-6.0.1-Q16-windows-dll.exe / {app} / include / magick / geometry.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-03-17  |  1.7 KB  |  77 lines

  1. /*
  2.   ImageMagick image geometry methods.
  3. */
  4. #ifndef _MAGICK_GEOMETRY_H
  5. #define _MAGICK_GEOMETRY_H
  6.  
  7. #if defined(__cplusplus) || defined(c_plusplus)
  8. extern "C" {
  9. #endif
  10.  
  11. typedef enum
  12. {
  13. #undef NoValue
  14.   NoValue = 0x0000,
  15. #undef XValue
  16.   PsiValue = 0x0001,
  17.   XValue = 0x0001,
  18. #undef YValue
  19.   XiValue = 0x0002,
  20.   YValue = 0x0002,
  21. #undef WidthValue
  22.   RhoValue = 0x0004,
  23.   WidthValue = 0x0004,
  24. #undef HeightValue
  25.   SigmaValue = 0x0008,
  26.   HeightValue = 0x0008,
  27.   ChiValue = 0x0010,
  28. #undef AllValues
  29.   AllValues = 0x7fffffff,
  30.   XiNegative = 0x0020,
  31. #undef XNegative
  32.   XNegative = 0x0020,
  33.   PsiNegative = 0x0040,
  34. #undef YNegative
  35.   YNegative = 0x0040,
  36.   ChiNegative = 0x0080,
  37.   PercentValue = 0x1000,
  38.   AspectValue = 0x2000,
  39.   LessValue = 0x4000,
  40.   GreaterValue = 0x8000,
  41.   AreaValue = 0x10000
  42. } GeometryFlags;
  43.  
  44. typedef struct _GeometryInfo
  45. {
  46.   double
  47.     rho,
  48.     sigma,
  49.     xi,
  50.     psi,
  51.     chi;
  52. } GeometryInfo;
  53.  
  54. extern MagickExport char
  55.   *GetPageGeometry(const char *);
  56.  
  57. extern MagickExport unsigned int
  58.   GetGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
  59.   IsGeometry(const char *),
  60.   IsSceneGeometry(const char *,const unsigned int),
  61.   ParseAbsoluteGeometry(const char *,RectangleInfo *),
  62.   ParseGeometry(const char *,GeometryInfo *),
  63.   ParseGravityGeometry(Image *,const char *,RectangleInfo *),
  64.   ParseMetaGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
  65.   ParsePageGeometry(Image *,const char *,RectangleInfo *),
  66.   ParseSizeGeometry(Image *,const char *,RectangleInfo *);
  67.  
  68. extern MagickExport void
  69.   SetGeometry(const Image *,RectangleInfo *),
  70.   SetGeometryInfo(GeometryInfo *);
  71.  
  72. #if defined(__cplusplus) || defined(c_plusplus)
  73. }
  74. #endif
  75.  
  76. #endif
  77.